#include "BitmapParser.h"


BitmapParser::BitmapParser(){}

BitmapParser::~BitmapParser()
{
	delete bmp;
}

void BitmapParser::openFile(WCHAR* level_name)
{
	//Gdiplus initialization
	GdiplusStartupInput gdiplusStartupInput;
	ULONG_PTR gdiplusToken;
	GdiplusStartup(&gdiplusToken, &gdiplusStartupInput, NULL);
	bmp = Bitmap::FromFile(level_name);
	// Get the value of a pixel from myBitmap.
	Gdiplus::Color pixelColor;
	int h=bmp->GetHeight();
	bmp->GetPixel(25, 25, &pixelColor);
}

Bitmap* BitmapParser::getBmp()
{
	return bmp;
}